#ifndef __LG_RELAY_CTRL_H
#define __LG_RELAY_CTRL_H

#include "delay.h"
#include "gpio.h"

typedef enum
{
	SWITCH_BIG,  //小流量
	SWITCH_TINY //微流量
}RelaySwitch;

typedef enum
{
    RELAY_OFF,
    RELAY_ON 
}RelayOper;

#define FLOW_MAX_CTR_PIN          GPIO_PTC3
#define FLOW_MAX_HIGH             PTC3_OUT_HIGH
#define FLOW_MAX_LOW              PTC3_OUT_LOW

#define FLOW_MIN_CTR_PIN          GPIO_PTH1
#define FLOW_MIN_HIGH             PTH1_OUT_HIGH
#define FLOW_MIN_LOW              PTH1_OUT_LOW

void lgInitRelay();

void lgRealyCtrl(uint8_t   isOpen);


void lgSitchCtrl(RelaySwitch  switchx,uint8_t isOpen);

#endif

